{template /common/header}
<script type="text/javascript" src="{THEME_PATH}js/area.js"></script> 
<script type="text/javascript">
var ajaxurl = "{U('Union/getArea')}";
var obj_title="联盟商家";
</script>
<form action="" method="get" id="search_form" >
    <div class="app_asTerm app_borderTop">
        <select class="select2" name="fenlei" id="fenlei" >
        <option value="-1" selected>--行业分类--</option>
              {loop $union_type $v}
        <option value="{$v[id]}" {if $_GET[fenlei] == $v[id]} selected="selected" {/if}>{$v[type_name]}</option>
              {/loop}
      </select>
      <select name="district" id="district" onchange="loadArea(this.value, 'null')" class="select1">
        <option value="-1">--地区--</option>
        
                            {loop $district $v}
                              
        <option value="{$v[area_id]}" {if $_GET[district] == $v[area_id]} selected="selected" {/if}>{$v[area_name]}</option>
        
                              {/loop}
                          
      </select>
      <select name="city" id="city" onchange="loadArea(this.value, 'district')" class="select1">
        <option value="-1">--城市--</option>
        
                                             {loop $city $v}
                              
        <option value="{$v[area_id]}" {if $_GET[city] == $v[area_id]} selected="selected" {/if}>{$v[area_name]}</option>
        
                              {/loop}
                           
      </select>
      <select name="province" id="province" onChange="loadArea(this.value, 'city')" class="select1">
        <option value="-1" selected>--省份--</option>
        
        
        
                              {loop $region $v}
                              
        <option value="{$v[area_id]}" {if $_GET[province] == $v[area_id]} selected="selected" {/if}>{$v[area_name]}</option>
        
                              {/loop}
                		 
      
      
      </select>
    </div>
    <div class="app_asTerm">
      <div class="div1">
      	<i>&#xe605</i>
         <input type="text" class="input1" name="title" id="title" placeholder="请输入商店名称" datatype="*" errormsg="请输入商店名称" nullmsg="请输入商店名称" />
      </div>
      <button class="button1" type="submit">搜索</button>
    </div>
	<input name="m" type="hidden" value="union" />
    <input name="c" type="hidden"  value="union" />
    <input name="a" type="hidden"  value="index" />
</form>
<ul class="app_asList">
  {loop $list_list $r}
  <li> <a href="{U('union/union/detail', array('id'=> $r[id]))}"><div class="app_fenlei">{$r[type_name]}</div> {if empty($r[company_logo])} <img src="{THEME_PATH}images/homeimages/nopic.jpg"> {else} <img src="{$r[company_logo]}"> {/if}
    <h1>{msubstr($r[company_name],10)}</h1>
    <p>地址：
      <?=$city_info[$r["province"]]?>
      <?=$city_info[$r["city"]]?>
      <?=$city_info[$r["district"]]?></p>
    </a> </li>
  {/loop}
</ul>
<div class="pagefooter pageactivity">
  <div class="pagefooter-01 fr">{$list[page]}</div>
</div>
{template /common/footer}